<template>
  <div class="bid-info">
      <div class="info-div" v-for="m in tableData" :key="m.id">
          <div class="info-title">
              <span> 
                {{m.initiatorUserName}}   
                于 {{m.createTime}} 发布 {{m.clarifyType == 1 ? '技术' : '商务'}}  澄清
               </span>
          </div>
          <div class="info-text w100">
              <span class="text-label">标题：</span>
              <span class="text-value">{{m.clarifyTitle}}</span>
          </div>
          <div class="info-text w100">
              <span class="text-label">附件：</span>
              <span class="text-value">
                  <a href="javascript:;" @click="downloadFile(m.clarifyAttUrl,m.clarifyAttName)" class="download_color">{{m.clarifyAttName}}</a>
              </span>
          </div>
          <div class="info-text w50" style="float:left">
              <span class="text-label">澄清内容：</span>
              <span class="text-value">{{m.clarifyContent}}</span>
          </div>
      </div>
  </div>
</template>
<script>
  export default {
    data() {
      return {
          tableData:[]
      };
    },
    created(){
        this.queryClarify();
    },
    methods: {
        queryClarify(){
            //获取澄清
            this.axios.post(`${this.lib.config.host.bidtender}/bidmgt/addition/queryClarify/${this.$route.query.id}/1`).then((res) => {
                 console.log(res.data);
               this.tableData=res.data;
            }).catch(function (error) {
                console.log(error);
            });
        },
        submitForm(){
            
        },
        // 下载附件
        download(filePath, fileName) {
            this.downloadFile(filePath, fileName);
        }
    }
  }

</script>
